{% extends "base.html" %}
{% block header %}
<link rel="stylesheet" type="text/css" href="/static/css/forms.css"/>
{% endblock %}

{% block menu %}
    {% include "flow-menu.html" %}
{% endblock %}

{% block content %}
 <div id="mon-tit">
    <div class="left">工作流平台 >>修改任务
    </div>
</div>
    <div class="clr"></div>
    <hr>
    <h3 class='tit'>
    {% block task_title %}
    任务详情
    {% endblock %}
    </h3>
    <table width="100%">

     {% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}

     {% if errors %}
        <p style="color: red;">
           {{ errors }}
        </p>
    {% endif %}

     {% if message %}
        <p style="color: green;">
           {{ message }}
        </p>
    {% endif %}



    <form action="" method="post">
        <div class="module aligned formview">
            <div  class="form-row">
                <label for="tid" >上线单ID：</label>
                <input type="text" name="tid" maxlength="255" value={{ task.id }} readOnly="readOnly"> 
            </div>

            <div  class="form-row">
                <label for="status" >上线单状态：</label>
                <input type="text" name="pid" maxlength="255" value={{ task.status}} readOnly="readOnly"> 
                <span></span>
            </div>


            <div  class="form-row">
                <label for="tname" >上线单名称：</label>
                <input type="text" name="tname" maxlength="255" value={{ task.tname }}> 
            </div>

          
            <div  class="form-row">
                <label for="pid" >对应服务名称：</label>
                <input type="text" name="pid" maxlength="255" value={{ task.pid}} > 
                <span></span>
            </div>

            <div  class="form-row">
                <label for="auth_uid" >审核人：</label>
                <input type="text" name="auth_uid" maxlength="255" value={{ task.auth_uid}} > 
            </div>


            <div  class="form-row">
                <label for="op_uid" >操作人员：</label>
                <input type="text" name="op_uid" maxlength="255" value={{ task.op_uid}}> 
            </div>

            <div  class="form-row">
                <label for="hid" >对应主机名称：</label>
                <textarea name="hid" class="vLargeTextField" >{{ task.hid}}</textarea> 
            </div>


            <div class="form-row">
                <label for="detail"  >任务描述：</label>
                <textarea  name="detail" class="vLargeTextField">{{ task.detail}}</textarea>
            </div>

            <div class="form-row">
                <label for="detail"  >附件：</label>
                <input  type="file" name="attach" name="op_uid" maxlength="255" value={{ task.attach}}> 
                <a href='/static/file/{{ task.attach }}'>原始附件</a>
            </div>

        <hr/>
        {%block task_action %}
        <div style='text-align:center'>
            <input type="submit" value="取消修改" style="margin-right:40px;width:80px">
            <input type="submit" value="提交修改" style="margin-right:40px;width:80px">
        </div>


        {% endblock %}
    </div>
    </form>

   </table>
{% endblock %}

